<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Nearing completion',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/07/28.jpg" alt="Trees and shrubs" class="framed-centred-image" width="649" height="480"/>
<section id="Minetest">
	<h2>Minetest</h2>
	<img src="/img/CC_BY-SA_3.0/minetest.net./weblog/2018/07/28.png" alt="Dye drops in the stats menu" class="framed-centred-image" width="800" height="600"/>
	<p>
		I&apos;ve now completely finished the <code>palette</code> mod, aside from the tricky small-palette-handling code.
		All dye colours are obtainable.
		The flower system doesn&apos;t provide all the flowers I need, so I&apos;ve supplemented with dye drops when harvesting tree leaves.
		However, seven tree types means there are seven dye drops.
		Drops are countable, and countable things are elements to combine using alchemy.
		I now have seven of essentially the same element, and I have to differentiate them in their alchemic results in some way.
		Plus, <code>alchemy</code>&apos;s going to need to be upgraded to handle complex elements.
		Currently, no dye drop can actually be used in alchemy due to a naïve assumption made in <code>alchemy</code> that no longer reflects the current capabilities of <code>minestats</code>.
		All wool and dye items are also now aliased to the new cotton block and dye replacement items.
	</p>
	<p>
		The only thing left at all to do is handle smaller palettes in craft results.
		I&apos;ve known all along how to deal with the smallest palette.
		It won&apos;t be a challenge at all.
		I simply need to round all three colour channels either up to full blast or down to minimal levels.
		No sweat.
		The mid-sized palette&apos;s been giving me trouble, but I&apos;ve been formulating a way to make that work too.
		I think after rounding to figure out which quadrant the resulting colour should be located in, I need to compare the unrounded colour channels and look for the most extreme.
		If it&apos;s higher/lower than the others by a significant enough degree, I&apos;ll tone down/up the other two in the resulting item.
	</p>
</section>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			The Oz series (at least the original section of it, which was written by Baum) is great.
			I highly recommend it.
			I would&apos;ve read the same story you chose, but I&apos;d already read it last year, so I decided to go with a different story for class this week.
		</p>
		<p>
			The hungry tiger and cowardly lion certainly are interesting characters.
			They both hold names that are in name only.
			You find throughout the Oz series that while the lion frequently calls himself cowardly because he has fear, he stands up for what he believes in despite his fear.
			Ironically, this is exactly what courage is.
			Without fear, there can be no courage or cowardice, and in the presence of fear, the &quot;cowardly&quot; lion never falls victim to cowardice.
			The hungry tiger is much the same way in regards to his name.
			He&apos;s actually well-fed by Ozma, and is no longer actually in a state of constant hunger.
		</p>
		<p>
			You make a good point about fantasy, too.
			Personally, I particularly enjoy stories in which the villain wins.
			It&apos;s not something that can be safely explored in the real world (even though it frequently happens here anyway).
			Too many stories have a happy ending when they&apos;d be much more fulfilling with a darker twist to them.
			Baum&apos;s stories actually pull off a happy ending quite well though.
			His characters are often simple (I mean, these <strong>*are*</strong> children&apos;s stories, after all), but they touch our hearts with their genuine kindness and goodness of heart, something else we don&apos;t see much of in the real world.
		</p>
	</blockquote>
</section>
END
);
